package su.NewFeatureType;
import iitb.Model.Edge;

public class EdgeIter{
    Edge edge;
    Edge edgeToReturn; 
    int labelNum;
    public EdgeIter(int _labelNum) {
		edge = new Edge();
	edgeToReturn = new Edge();
	labelNum=_labelNum;
	edge.start = 0;
	edge.end = 0;
    };

	

    public boolean hasNext() {
	return (edge.start < labelNum);
    }
    public Edge next() {
	edgeToReturn.start = edge.start;
	edgeToReturn.end = edge.end;
	edge.end++;
	if (edge.end == labelNum) {
	    edge.end= 0;
	    edge.start++;
	}
	return edgeToReturn;
    }
	public boolean nextIsOuter() {
		return true;
	}
};
